package com.atlin.project.service.task;

import com.atlin.project.model.domain.task.TaskTags;
import com.atlin.project.model.dto.taskTags.TaskTagsQueryRequest;
import com.atlin.project.model.vo.TaskTagsVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * @author atlin
 * @description taskTags
 * @createDate date
 */
public interface TaskTagsService extends IService<TaskTags> {

    void valid(TaskTags taskTags, boolean add);

    /**
     * 获取封装
     *
     * @param taskTags
     * @param request
     * @return
     */
    TaskTagsVO getTaskTagsVO(TaskTags taskTags, HttpServletRequest request);


    /**
     * 获取查询条件
     *
     * @param questionQueryRequest
     * @return
     */
    QueryWrapper<TaskTags> getQueryWrapper(TaskTagsQueryRequest questionQueryRequest);

    /**
     * 分页获取封装
     *
     * @param questionPage
     * @param request
     * @return
     */
    Page<TaskTagsVO> getTaskTagsVOPage(Page<TaskTags> questionPage, HttpServletRequest request);
}
